<?php
if(isset($_POST['submit']))
{
	$a=$_POST['submit'];
	switch($a)
	{
		case '登录': $b='login.php' ; break;
		case '注册': $b='register.php' ; break;
		case '谷歌': $b='http://www.google.com' ; break;
		case '百度': $b='http://www.baidu.com' ; break;
		case '吉首大学': $b='http://www.jsu.edu.cn/default.html' ; break;
	
	}
	header("location:$b");
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>小空间</title>
</head>

<body>
<form action="index.php" method="post">
  <table border="1" bordercolor="#CCCCCC" align="center" bgcolor="#000099" >
    <tr>
      <td align="center"><img src="photo/liyue.png" /></td>
      <td><input type="submit" name="submit" value="注册" /></td>
      <td><input type="submit" name="submit" value="登录" /></td>
    </tr>
    <tr>
      <td>
		<input type="submit" name="submit" value="百度" />
		<input type="submit" name="submit" value="谷歌" />
		<input type="submit" name="submit" value="吉首大学" />
	  </td>
    </tr>
  </table>
</form>
</body>
</html>
